Passed
Push — master ( 0494db...5e1e13 )
by Zhenyu
01:23
created

tag-service.js ➔ ... ➔ ???   A

Complexity

Conditions 1
Paths 0

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
c 1
b 0
f 1
nc 0
nop 2
dl 0
loc 1
rs 10
1
import tagService from '../tag-service';
2
3
it('create enhancer to add service to meta of action functions', () => {
4
	const actionFunction = (params, meta) => meta;
5
	const enhanced = tagService('some-service')(actionFunction);
6
	const result = enhanced({}, {});
7
	expect(result).toEqual({ service: 'some-service' });
8
});
9